import Vue from 'vue'
import Vuex from 'vuex'
import userModel from '@/store/user'
import tokenModel from '@/store/token'
import cartModel from '@/store/cart'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {

  },

  modules: {
    m_user: userModel,
    m_token: tokenModel,
    m_cart: cartModel
  },

  mutations: {

  },

  getters: {
    /* token (state) {
      return state.user.userInfo
    } */

  },

  actions: {
  }

})
